import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
// 2021-10-20加缺少登录接口，一个登录接口返回uuid
export function getUuid() {
  return Cookies.get(uuid)
}
export function setUuid(id) {
  return Cookies.set(uuid, id)
}